package com.itheima05;

/**
 * @author Xiao
 * @date 2021/7/9
 */
public class Cat extends Animal {
    /**
     *      猫和狗
     *          子类猫
     */
    public void catchmouse () {
        System.out.println(super.getAge() + "岁的" + super.getName() + "在抓老鼠");
    }
    public Cat () {
    }
    public Cat (String name, int age) {
        super(name, age);
    }

    @Override
    public String getName() {
        return super.getName();
    }

    @Override
    public void setName(String name) {
        super.setName(name);
    }

    @Override
    public int getAge() {
        return super.getAge();
    }

    @Override
    public void setAge(int age) {
        super.setAge(age);
    }
}
